package com.mjk.common.core.jdbc.annotation;

import com.mjk.common.core.jdbc.service.idgenerator.IdGenerateType;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Documented
@Target({java.lang.annotation.ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Id {
	String seqName() default "";

	/**
	 * 默认主键生成策略为自增
	 *
	 * @return
	 */
	IdGenerateType type() default IdGenerateType.AUTO_INCR;
}
